package lab01;

import java.util.Scanner;

public class test08 {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number = (int) (Math.random() * 100) + 1;
    System.out.println("输入猜测数");
    int conjecture = sc.nextInt();
    while (true)
    {
        if (conjecture > number)
            System.out.println("猜大了");
        if (conjecture < number)
            System.out.println("猜小了");
        if (conjecture == number)
        {
            System.out.println("猜对了");
            break;
        }
        conjecture = sc.nextInt();
    }
}
}
